home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pMIAW
- global gEnvironObj, gGraph, gIsAlertMessagesOn, gDataNotSavedAlert, gIsRolloverTextOn
-
- on new me, buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant
- if objectp(descendant) then
- ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant)
- else
- ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, me)
- end if
- cursor = [member("point hand", "graph.cst"), member("point hand mask", "graph.cst")]
- set the cursor of sprite the pChannel of me to cursor
- return me
- end
-
- on setMIAW me, miaw
- pMIAW = miaw
- return me
- end
-
- on performFunction me
- if getaProp(gGraph, #pIsDirty) then
- if gIsAlertMessagesOn then
- tell the stage
- openAlertWindow("datntsav", rect(0, 0, 320, 211))
- end tell
- else
- closeMe(pMIAW)
- end if
- else
- closeMe(pMIAW)
- end if
- return me
- end
-
- on performRolloverFunction me
- if gIsRolloverTextOn then
- performRolloverFunction(ancestor)
- end if
- return me
- end
-
- on performRolloffFunction me
- if gIsRolloverTextOn then
- performRolloffFunction(ancestor)
- end if
- return me
- end
-